package com.moyq5.mvc.maker.test.web;

import org.apache.shiro.authc.HostAuthenticationToken;
import org.apache.shiro.authc.RememberMeAuthenticationToken;

public class AdminAuthenticationToken implements HostAuthenticationToken, RememberMeAuthenticationToken {

	private static final long serialVersionUID = 1L;
	private Long adminId;
	private String credentials;
	@Override
	public Object getPrincipal() {
		return adminId;
	}

	@Override
	public Object getCredentials() {
		return credentials;
	}

	public void setPrincipal(Long adminId) {
		this.adminId = adminId;
	}

	public void setCredentials(String credentials) {
		this.credentials = credentials;
	}

	@Override
	public boolean isRememberMe() {
		return false;
	}

	@Override
	public String getHost() {
		return null;
	}

}
